import { handleActions } from 'redux-actions'
import { search_action_success } from '../actions/search'

const initialSerch = {
    results: []
}
const searchReducer = handleActions({
    [search_action_success]: (state, action) => ({
        results: action.payload.results
    })
}, initialSerch)
export default searchReducer